using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    
	[Table("HrmEsResponse")]
    public class EsResponse
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "RespId", ResourceType = typeof(Resources.EsResponsesResource))]
        public int RespId { get; set; }

		[ForeignKey("Mail")]
		[DataMember, Display(Name = "MailId", ResourceType = typeof(Resources.EsResponsesResource))]
        public Nullable<int> MailId { get; set; }

		[DataMember, Display(Name = "RespStatus", ResourceType = typeof(Resources.EsResponsesResource))]
        public string RespStatus { get; set; }

		[DataMember, Display(Name = "Descr", ResourceType = typeof(Resources.EsResponsesResource))]
        public string Descr { get; set; }

		[ForeignKey("RespNext")]
		[DataMember, Display(Name = "RespNextId", ResourceType = typeof(Resources.EsResponsesResource))]
        public Nullable<int> RespNextId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.EsResponsesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.EsResponsesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.EsResponsesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.EsResponsesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.EsResponsesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.EsMail Mail { get; set; }

		public virtual HRM.EsResponse RespNext { get; set; }

    }
}